import request from '@/router/axios';

// 获取甘特图
export const getGanttChart = () => {
  return request({
    url: '/api/mes-product/aps/productionplan/gantt-chart',
    method: 'get'
  });
};

// 撤销排程
export const cancelGantt = (params) => {
  return request({
    url: '/api/mes-product/aps/productionplan/cancel',
    method: 'get',
    params
  });
};

// 完成生产
export const finishGantt = (params) => {
  return request({
    url: '/api/mes-product/aps/productionplan/finish',
    method: 'get',
    params
  });
};
